/**
 * 自动生成！请勿修改！
 */
import { command } from '../core/command';

class GameController {
    constructor(opt = {}) {
        const { device, to, ...opts } = opt;

        this.device = device || {};
        this.opts = opts || {};
        this._to = to;
    }

    get categoryCode() {
        return '010080006';
    }

    get categoryName() {
        return '\u6e38\u620f\u64cd\u7eb5\u6746';
    }

    getBacklightColor(params) {
        return command({
            method: 'getBacklightColor',
            methodId: 'pdNCv2jG',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getButton(params) {
        return command({
            method: 'getButton',
            methodId: 'pDrhMvCL',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getPosition(params) {
        return command({
            method: 'getPosition',
            methodId: 'pgh0sNlS',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getPressMode(params) {
        return command({
            method: 'getPressMode',
            methodId: 'p1vZ5HSZ',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getSensitivity(params) {
        return command({
            method: 'getSensitivity',
            methodId: 'phEqcTDV',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getSwitch(params) {
        return command({
            method: 'getSwitch',
            methodId: 'pGoxwZqd',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getVibration(params) {
        return command({
            method: 'getVibration',
            methodId: 'ptRSJJT3',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setBacklightColor(params) {
        return command({
            method: 'setBacklightColor',
            methodId: 'pZguAdzr',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setSensitivity(params) {
        return command({
            method: 'setSensitivity',
            methodId: 'ppAXNAFC',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setSwitch(params) {
        return command({
            method: 'setSwitch',
            methodId: 'peH32CHU',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setVibration(params) {
        return command({
            method: 'setVibration',
            methodId: 'pUPQZrhA',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }
}

export default GameController;
